local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());



function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);
	self.player=self.parent.player
    self.drop=self.parent.drop

    self.Animator=self.parent:AddComponent(CommonOHOH.load.ModelAnimationCtrl());

    self.Animator:PreLoadHadAnimation()

	self.parent.HurtEvent:Connect(function()
		self.Animator:PlayAnimation("damage","damage")
	end)

    self.parent.DieEvent:Connect(function()
		self.Animator:PlayAnimation("die","die")
	end)

end;


return M